﻿<!DOCTYPE html>
<html>
	<meta charset="utf-8"/>
	<head>
		<script>
			var str = "china is a great country";
			console.log( str.charAt(3) );
			console.log( str.charCodeAt(3) );
			
			var ch = String.fromCharCode(99);
			
			console.log(ch);
			 
			console.log( str.substring(0,3) ); // chi
			
			console.log( str.split(" ") );
		</script>
	</head>
	<body>
		中国
	</body>	
</html>











